﻿using System;
using System.Collections.Generic;
using System.Text;


public class ApiResult
{
    /// <summary>
    /// 状态码  0为成功
    /// </summary>
    public int Code { get; set; }

    /// <summary>
    /// 返回消息
    /// </summary>
    public string Message { get; set; }

    /// <summary>
    /// 具体数据
    /// </summary>
    public string Data { get; set; }

    /// <summary>
    /// 是否成功
    /// </summary>
    public bool Success { get; set; }

}

public class ApiResult<T>
{
    /// <summary>
    /// 状态码 为0表示正确
    /// </summary>
    public int Code { get; set; }
    /// <summary>
    /// 数据
    /// </summary>
    public T Data { get; set; }
    /// <summary>
    /// 消息
    /// </summary>
    public string Message { get; set; }
    /// <summary>
    /// 是否正确
    /// </summary>
    public bool Success { get; set; }
}

